package cn.e4j.modular.crm.entity;
import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author mengyb
 * @since 2019/04/12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName(value = "GWAU_T")
public class GwauT extends PO<GwauT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWAUENT",type = IdType.INPUT)
    private String GWAUENT;
    private String GWAU001;
    private String GWAU002;
    private String GWAU003;
    private String GWAUACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWAUUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWAUGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String GWAUMODU;
    @TableField(fill = FieldFill.INSERT)
    private String GWAUTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWAUDATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWAUORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWAUORIU;

    @Override
    protected Serializable pkVal() {
        return this.GWAUENT;
    }
}
